export const highlightBackground = (text: string) =>
`<span style="background-color:#16CFCF;color:#fff;border-radius:6px;">${text}</span>`;

export const highlight = (text: string, from: number, to: number) => {
    let replacement = highlightBackground(text.slice(from, from+to));
    return text.substring(0, from) + replacement + text.substring(from+to);
 
};